<template>
  <div id="app">
    <router-view />
  </div>
</template>
<script>
  export default{
    data(){
      return{

      }
    },
    created(){
      // this.checkUrl();
      if(process.env.NODE_ENV == 'development'){
        console.log('development');
        // localStorage.setItem('access_token', 'c99cff0a-fd9c-436e-af5a-5afcee67b99e')
      }
    },
    methods:{
      checkUrl(){
        let url = window.location.pathname;
        let siteType = url.split('/')[1];
        let storage_siteType = localStorage.getItem('siteType');
        console.log(siteType, storage_siteType);
        if(storage_siteType){
          if(siteType != storage_siteType){
            localStorage.clear();
          }
        }else{  
          localStorage.setItem('siteType', siteType);
        }
      }
    }
  }
</script>
<style>
body {
  font-size: 16px;
  background-color: #f8f8f8;
  -webkit-font-smoothing: antialiased;
}
</style>
